.class Lcom/instagram/android/maps/r;
.super Ljava/lang/Object;
.source "PhotoMapsActivity.java"

# interfaces
.implements Lcom/instagram/android/maps/ui/a/c;


# instance fields
.field final synthetic a:Lcom/instagram/android/maps/ui/al;

.field final synthetic b:Lcom/instagram/android/maps/PhotoMapsActivity;


# direct methods
.method constructor <init>(Lcom/instagram/android/maps/PhotoMapsActivity;Lcom/instagram/android/maps/ui/al;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 816
    iput-object p1, p0, Lcom/instagram/android/maps/r;->b:Lcom/instagram/android/maps/PhotoMapsActivity;

    iput-object p2, p0, Lcom/instagram/android/maps/r;->a:Lcom/instagram/android/maps/ui/al;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/instagram/android/maps/b/f;)Z
    .locals 6
    .parameter

    .prologue
    const/4 v1, 0x1

    const/4 v0, 0x0

    .line 820
    invoke-static {}, Lcom/instagram/android/maps/e/a;->a()Lcom/instagram/android/maps/e/a;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/android/maps/e/a;->b()Z

    move-result v2

    if-eqz v2, :cond_2

    .line 821
    iget-object v2, p0, Lcom/instagram/android/maps/r;->a:Lcom/instagram/android/maps/ui/al;

    invoke-virtual {v2}, Lcom/instagram/android/maps/ui/al;->a()Lcom/instagram/android/maps/b/f;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/android/maps/b/f;->g()Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-ne v2, v1, :cond_1

    .line 822
    invoke-static {}, Lcom/instagram/android/maps/e/a;->a()Lcom/instagram/android/maps/e/a;

    move-result-object v2

    iget-object v3, p0, Lcom/instagram/android/maps/r;->a:Lcom/instagram/android/maps/ui/al;

    invoke-virtual {v3}, Lcom/instagram/android/maps/ui/al;->a()Lcom/instagram/android/maps/b/f;

    move-result-object v3

    invoke-virtual {v3}, Lcom/instagram/android/maps/b/f;->g()Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/g;

    invoke-virtual {v2, v0}, Lcom/instagram/android/maps/e/a;->d(Lcom/instagram/android/model/g;)V

    :goto_0
    move v0, v1

    .line 838
    :cond_0
    :goto_1
    return v0

    .line 824
    :cond_1
    iget-object v2, p0, Lcom/instagram/android/maps/r;->b:Lcom/instagram/android/maps/PhotoMapsActivity;

    new-instance v3, Lcom/instagram/android/maps/ui/b;

    iget-object v4, p0, Lcom/instagram/android/maps/r;->b:Lcom/instagram/android/maps/PhotoMapsActivity;

    iget-object v5, p0, Lcom/instagram/android/maps/r;->b:Lcom/instagram/android/maps/PhotoMapsActivity;

    invoke-static {v5}, Lcom/instagram/android/maps/PhotoMapsActivity;->f(Lcom/instagram/android/maps/PhotoMapsActivity;)Lcom/instagram/android/maps/ui/n;

    move-result-object v5

    invoke-virtual {v5}, Lcom/instagram/android/maps/ui/n;->getProjection()Lcom/google/android/maps/Projection;

    move-result-object v5

    invoke-direct {v3, v4, p1, v5}, Lcom/instagram/android/maps/ui/b;-><init>(Lcom/instagram/android/maps/PhotoMapsActivity;Lcom/instagram/android/maps/b/f;Lcom/google/android/maps/Projection;)V

    invoke-static {v2, v3}, Lcom/instagram/android/maps/PhotoMapsActivity;->a(Lcom/instagram/android/maps/PhotoMapsActivity;Lcom/instagram/android/maps/ui/b;)Lcom/instagram/android/maps/ui/b;

    .line 825
    iget-object v2, p0, Lcom/instagram/android/maps/r;->b:Lcom/instagram/android/maps/PhotoMapsActivity;

    invoke-static {v2}, Lcom/instagram/android/maps/PhotoMapsActivity;->q(Lcom/instagram/android/maps/PhotoMapsActivity;)Lcom/instagram/android/maps/ui/b;

    move-result-object v2

    iget-object v3, p0, Lcom/instagram/android/maps/r;->b:Lcom/instagram/android/maps/PhotoMapsActivity;

    invoke-static {v3}, Lcom/instagram/android/maps/PhotoMapsActivity;->f(Lcom/instagram/android/maps/PhotoMapsActivity;)Lcom/instagram/android/maps/ui/n;

    move-result-object v3

    const/16 v4, 0x11

    invoke-virtual {v2, v3, v4, v0, v0}, Lcom/instagram/android/maps/ui/b;->showAtLocation(Landroid/view/View;III)V

    goto :goto_0

    .line 830
    :cond_2
    iget-object v2, p0, Lcom/instagram/android/maps/r;->b:Lcom/instagram/android/maps/PhotoMapsActivity;

    invoke-static {v2}, Lcom/instagram/android/maps/PhotoMapsActivity;->f(Lcom/instagram/android/maps/PhotoMapsActivity;)Lcom/instagram/android/maps/ui/n;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/android/maps/ui/n;->getMapCenter()Lcom/google/android/maps/GeoPoint;

    .line 833
    iget-object v2, p0, Lcom/instagram/android/maps/r;->b:Lcom/instagram/android/maps/PhotoMapsActivity;

    invoke-virtual {v2, p1, v1}, Lcom/instagram/android/maps/PhotoMapsActivity;->a(Lcom/instagram/android/maps/b/f;Z)Z

    move-result v1

    if-nez v1, :cond_0

    .line 836
    iget-object v0, p0, Lcom/instagram/android/maps/r;->b:Lcom/instagram/android/maps/PhotoMapsActivity;

    iget-object v1, p0, Lcom/instagram/android/maps/r;->a:Lcom/instagram/android/maps/ui/al;

    invoke-static {v0, p1, v1}, Lcom/instagram/android/maps/PhotoMapsActivity;->a(Lcom/instagram/android/maps/PhotoMapsActivity;Lcom/instagram/android/maps/b/f;Lcom/instagram/android/maps/ui/al;)Z

    move-result v0

    goto :goto_1
.end method
